<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
     var objectArr = [
         {name:'abolr',age:18},
         {name:'bosaidong',age:118},
         {name:'pulomixiusi',age:128}
     ]
     //表示定义该数组的属性
     objectArr.name="数组";
        //  遍历数据结果 是 数组索引 0 1 2
     for (const item in objectArr) {
         console.log("forin信息：",item,objectArr[item]);
     }
     console.log("分割线---------------");
     for (const iterator of objectArr) {
         console.log("forof",iterator);
     }
    </script>
</body>
</html>